package com.biz.primus.ms.coupon.event.couponType;

import com.biz.primus.ms.base.event.LocalEvent;
import com.biz.primus.ms.coupon.dao.ro.CouponTypeRo;
import lombok.Getter;

/**
 * 追加优惠券发行数量事件
 *
 * @author david-liu
 */
@Getter
public class AppendCouponTypeIssuedCountEvent extends LocalEvent {
    private static final long serialVersionUID = 1491328850045438071L;

    // 优惠券类型Ro
    private CouponTypeRo couponTypeRo;

    // 追加发行数量
    private Integer appendIssueCount;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public AppendCouponTypeIssuedCountEvent(Object source, CouponTypeRo couponTypeRo, Integer appendIssueCount) {
        super(source);
        this.couponTypeRo = couponTypeRo;
        this.appendIssueCount = appendIssueCount;
    }
}
